using System;
using System.Collections.Generic;

using ZoneFiveSoftware.Common.Data.Fitness;
using ZoneFiveSoftware.Common.Data.GPS;
using ZoneFiveSoftware.Common.Visuals;
using ZoneFiveSoftware.Common.Visuals.Fitness;

namespace BENBUN.ExportCRS.x
{
    class ExtendActions : IExtendActivityExportActions
    {
        #region IExtendActivityExportActions Members

        IList<IAction> IExtendActivityExportActions.GetActions(IList<IActivity> activity)
        {
            return null;
        }

        IList<IAction> IExtendActivityExportActions.GetActions(IActivity activity)
        {
            if (activity == null || activity.GPSRoute == null || activity.GPSRoute.Count == 0) return null;

            IList<IAction> actions = new List<IAction>();
            actions.Add(new ExportActivityToCRSAction(activity));
            return actions;
        }

        #endregion
    }

    class ExtendActionsz :IExtendRouteExportActions
    {
        #region IExtendRouteExportActions Members

        IList<IAction> IExtendRouteExportActions.GetActions  (IList<IRoute> route)
        {
            return null;
        }

        IList<IAction> IExtendRouteExportActions.GetActions(IRoute route)
        {
            if (route == null || route.GPSRoute == null || route.GPSRoute.Count == 0) return null;

            IList<IAction> actions = new List<IAction>();
            actions.Add(new ExportRouteToCRSAction(route));
            return actions;
        }

        #endregion
    }
}
